package demo;

/**
 * @author oldliu
 * @since 1.0
 */
public class ExTest {
    public static int c(){
        int x=3;
        try{
             return x;
        }catch (Exception e){
            x=6;
        }finally {
            x=9;
        }
        return x;
    }
    public static P getP(){
        P p=new P(10,10);
        try{
            p.x=20;
            p.y=20;
            return p;
        }catch (Exception e){
            p.x=40;
            p.y=40;
        }
        finally {
            p.x=100;
            p.y=100;
        }
        return p;
    }
    public static void main(String[] args) {
        System.out.println(c());//9
        System.out.println(getP());
    }
}
